var a = getApp();

Page({
    data: {},
    onLoad: function(a) {
        a.id && this.setData({
            id: a.id
        }), this.getdata();
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    getdata: function() {
        var n = this, o = a.getNetAddresss("plugin.agent-qa.api.answer_record.details");
        a._postNetWork({
            url: o,
            data: {
                id: n.data.id
            },
            success: function(a) {
                var o = a.data;
                if (1 == o.result) {
                    console.log(o);
                    for (var t = 0; t < o.data.answer_record.length; t++) for (var e = 0; e < o.data.answer_record[t].option.length; e++) 1 == o.data.answer_record[t].option[e].answer && 1 == o.data.answer_record[t].option[e].answer_id && (o.data.answer_record[t].isrela = !0);
                    console.log(o.data), n.setData({
                        info: o.data
                    });
                } else wx.showToast({
                    title: o.msg,
                    icon: "none"
                });
            },
            fail: function(a) {
                wx.showToast({
                    title: a.msg,
                    icon: "none"
                });
            }
        });
    }
});